package ch4;

import java.util.Scanner;

public class Qiuhe {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("input a number:");
		int num = in.nextInt();
		for (int i = 0, j = num; i <= num; i++, j--) {
			System.out.printf("%d + %d =%d \n", i, j, num);
		}

	}

}
